package com.tg.data.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class MessageDataBean {


    /**
     * items : [{"id":"807262","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:24:03","end_time":"2019-03-20 15:24:08","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/24-05.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=RcvCQ1mTNx2TKudNh9D0rHH6prU%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"},{"id":"807258","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:21:08","end_time":"2019-03-20 15:21:13","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/21-10.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=lzwHfjBWQbJ8hr3XsoyGgfyVtHs%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"},{"id":"807255","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:19:58","end_time":"2019-03-20 15:20:03","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/20-00.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=vKrpF4JGq7tHor5PEOv0ZXzgWuU%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"},{"id":"807251","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:10:03","end_time":"2019-03-20 15:10:08","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/10-05.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=fhWkkYSKxx6vpq7r%2FBswvE1z2Jc%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"},{"id":"807249","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:07:43","end_time":"2019-03-20 15:07:48","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/07-45.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=DgY9tAp%2BMQMiwZZ0Z%2Fl06AHotGU%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"},{"id":"807247","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:06:33","end_time":"2019-03-20 15:06:38","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/06-35.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=pm7mYjaYLjrc%2Bqeyd4j0lhsDZFo%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"},{"id":"807245","uuid":"0BHWML9PYRBQ","start_time":"2019-03-20 15:05:23","end_time":"2019-03-20 15:05:28","tag":"sound","audio_type":"null","image_path":"https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/05-25.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=qTHvVt%2FcTS2oumrFZsLg4dWf7Bs%3D","device_id":"178","nickname":"摄像头2","message":"Sound detected","is_body":"0"}]
     * first : 1
     * before : 1
     * current : 1
     * last : 1
     * next : 1
     * total_pages : 1
     * total_items : 7
     * limit : 10
     */

    private int first;
    private int before;
    private int current;
    private int last;
    private int next;
    private int total_pages;
    private int total_items;
    private int limit;
    private List<ItemsBean> items;
    private int offset;



    @Override
    public String toString() {
        return "MessageDataBean{" +
                "first=" + first +
                ", before=" + before +
                ", current=" + current +
                ", last=" + last +
                ", next=" + next +
                ", total_pages=" + total_pages +
                ", total_items=" + total_items +
                ", limit=" + limit +
                ", offset=" + offset +
                '}';
    }




    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getFirst() {
        return first;
    }

    public void setFirst(int first) {
        this.first = first;
    }

    public int getBefore() {
        return before;
    }

    public void setBefore(int before) {
        this.before = before;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getLast() {
        return last;
    }

    public void setLast(int last) {
        this.last = last;
    }

    public int getNext() {
        return next;
    }

    public void setNext(int next) {
        this.next = next;
    }

    public int getTotal_pages() {
        return total_pages;
    }

    public void setTotal_pages(int total_pages) {
        this.total_pages = total_pages;
    }

    public int getTotal_items() {
        return total_items;
    }

    public void setTotal_items(int total_items) {
        this.total_items = total_items;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public List<ItemsBean> getItems() {
        return items;
    }

    public void setItems(List<ItemsBean> items) {
        this.items = items;
    }

    public static class ItemsBean implements Parcelable {
        /**
         * id : 807262
         * uuid : 0BHWML9PYRBQ
         * start_time : 2019-03-20 15:24:03
         * end_time : 2019-03-20 15:24:08
         * tag : sound
         * audio_type : null
         * image_path : https://usingnet-media-cloud-user-private.oss-cn-shenzhen.aliyuncs.com/0BHWML9PYRBQ/2019/03/20/15/24-05.jpg?OSSAccessKeyId=LTAIl2eaCgJ9he7S&Expires=1553070517&Signature=RcvCQ1mTNx2TKudNh9D0rHH6prU%3D
         * device_id : 178
         * nickname : 摄像头2
         * message : Sound detected
         * is_body : 0
         */

        private String id;
        private String uuid;
        private String start_time;
        private String end_time;
        private String tag;
        private String audio_type;
        private String image_path;
        private String device_id;
        private String nickname;
        private String message;
        private int is_body;   //是否有人形 （0：无，1：有）
        private int is_pay;
        private long start_ts;
        private String ossid;
        private String tag_msg;
        private String tag_name;
        private String message_type;
        private String btn_style;
        private String btn_name;
        private String url;
        private String addr;
        private String pos;
        private  String msg_id;
        private String requestid;
        private boolean is_ai_tag;
        private String sub_tag;
        private String tag_icon;
        private String category;
        private String subclass;

        private String similarity_degree;

        public String getSimilarityDegree(){
            return similarity_degree;
        }

        public String getSubclass(){
            return subclass;
        }

        public void setSimilarityDegree(String similarity_degree){
            this.similarity_degree = similarity_degree;
        }

        public String getTag_icon() {
            return tag_icon;
        }

        public void setTag_icon(String tag_icon) {
            this.tag_icon = tag_icon;
        }

        public String getSub_tag() {
            return sub_tag;
        }


        public void setSub_tag(String sub_tag) {
            this.sub_tag = sub_tag;
        }

        public boolean isIs_ai_tag() {
            return is_ai_tag;
        }

        public void setIs_ai_tag(boolean is_ai_tag) {
            this.is_ai_tag = is_ai_tag;
        }

        public ItemsBean() {
        }


        protected ItemsBean(Parcel in) {
            id = in.readString();
            uuid = in.readString();
            start_time = in.readString();
            end_time = in.readString();
            tag = in.readString();
            audio_type = in.readString();
            image_path = in.readString();
            device_id = in.readString();
            nickname = in.readString();
            message = in.readString();
            is_body = in.readInt();
            is_pay = in.readInt();
            start_ts = in.readLong();
            ossid = in.readString();
            tag_msg = in.readString();
            message_type = in.readString();
            btn_style = in.readString();
            btn_name = in.readString();
            url = in.readString();
            addr = in.readString();
            tag_name = in.readString();
            pos = in.readString();
            msg_id = in.readString();
            requestid = in.readString();
            int ai = in.readInt();
            is_ai_tag = ai == 1;
            sub_tag = in.readString();
            tag_icon = in.readString();
            category = in.readString();
            subclass = in.readString();
            similarity_degree = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeString(uuid);
            dest.writeString(start_time);
            dest.writeString(end_time);
            dest.writeString(tag);
            dest.writeString(audio_type);
            dest.writeString(image_path);
            dest.writeString(device_id);
            dest.writeString(nickname);
            dest.writeString(message);
            dest.writeInt(is_body);
            dest.writeInt(is_pay);
            dest.writeLong(start_ts);
            dest.writeString(ossid);
            dest.writeString(tag_msg);
            dest.writeString(message_type);
            dest.writeString(btn_style);
            dest.writeString(btn_name);
            dest.writeString(url);
            dest.writeString(addr);
            dest.writeString(tag_name);
            dest.writeString(pos);
            dest.writeString(msg_id);
            dest.writeString(requestid);
            dest.writeInt(is_ai_tag ? 1 : 0);
            dest.writeString(sub_tag);
            dest.writeString(tag_icon);
            dest.writeString(category);
            dest.writeString(subclass);
            dest.writeString(similarity_degree);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<ItemsBean> CREATOR = new Creator<ItemsBean>() {
            @Override
            public ItemsBean createFromParcel(Parcel in) {
                return new ItemsBean(in);
            }

            @Override
            public ItemsBean[] newArray(int size) {
                return new ItemsBean[size];
            }
        };

        public String getMsg_id() {
            return msg_id;
        }

        public void setMsg_id(String msg_id) {
            this.msg_id = msg_id;
        }

        public void setRequestid(String requestid) {
            this.requestid = requestid;
        }

        public String getRequestid() {
            return requestid;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUuid() {
            return uuid;
        }

        public void setUuid(String uuid) {
            this.uuid = uuid;
        }

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public String getCategory(){
            return category;
        }

        public void setCategory(String category){
            this.category = category;
        }

        public String getAudio_type() {
            return audio_type;
        }

        public void setAudio_type(String audio_type) {
            this.audio_type = audio_type;
        }

        public String getImage_path() {
            return image_path;
        }

        public void setImage_path(String image_path) {
            this.image_path = image_path;
        }

        public String getDevice_id() {
            return device_id;
        }

        public void setDevice_id(String device_id) {
            this.device_id = device_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getIs_body() {
            return is_body;
        }

        public void setIs_body(int is_body) {
            this.is_body = is_body;
        }

        public int getIs_pay() {
            return is_pay;
        }

        public void setIs_pay(int is_pay) {
            this.is_pay = is_pay;
        }

        public long getStart_ts() {
            return start_ts;
        }

        public void setStart_ts(long start_ts) {
            this.start_ts = start_ts;
        }

        public String getOssid() {
            return ossid;
        }

        public void setOssid(String ossid) {
            this.ossid = ossid;
        }

        public String getTag_msg() {
            return tag_msg;
        }

        public void setTag_msg(String tag_msg) {
            this.tag_msg = tag_msg;
        }

        public String getMessage_type() {
            return message_type;
        }

        public void setMessage_type(String message_type) {
            this.message_type = message_type;
        }

        public String getBtn_style() {
            return btn_style;
        }

        public void setBtn_style(String btn_style) {
            this.btn_style = btn_style;
        }

        public String getBtn_name() {
            return btn_name;
        }

        public void setBtn_name(String btn_name) {
            this.btn_name = btn_name;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getAddr() {
            return addr;
        }

        public void setAddr(String addr) {
            this.addr = addr;
        }

        public String getTag_name() {
            return tag_name;
        }

        public void setTag_name(String tag_name) {
            this.tag_name = tag_name;
        }

        public void setPos(String pos) {
            this.pos = pos;
        }

        public String getPos() {
            return pos;
        }

        @Override
        public String toString() {
            return "ItemsBean{" +
                    "id='" + id + '\'' +
                    ", uuid='" + uuid + '\'' +
                    ", start_time='" + start_time + '\'' +
                    ", end_time='" + end_time + '\'' +
                    ", tag='" + tag + '\'' +
                    ", audio_type='" + audio_type + '\'' +
                    ", image_path='" + image_path + '\'' +
                    ", device_id='" + device_id + '\'' +
                    ", nickname='" + nickname + '\'' +
                    ", message='" + message + '\'' +
                    ", is_body=" + is_body +
                    ", is_pay=" + is_pay +
                    ", start_ts=" + start_ts +
                    ", ossid='" + ossid + '\'' +
                    ", tag_msg='" + tag_msg + '\'' +
                    ", tag_name='" + tag_name + '\'' +
                    ", message_type='" + message_type + '\'' +
                    ", btn_style='" + btn_style + '\'' +
                    ", btn_name='" + btn_name + '\'' +
                    ", url='" + url + '\'' +
                    ", addr='" + addr + '\'' +
                    ", pos='" + pos + '\'' +
                    ", msg_id='" + msg_id + '\'' +
                    ", requestid='" + requestid + '\'' +
                    ", is_ai_tag='" + is_ai_tag + '\'' +
                    ", sub_tag='" + sub_tag + '\'' +
                    ", tag_icon='" + tag_icon + '\'' +
                    ", subclass=" + subclass +
                    ", similarity_degree=" + similarity_degree +
                    '}';
        }
    }
}
